]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
MessageTray: fix popping up after there were modals
authorGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 20 Nov 2012 18:53:22 +0000 (19:53 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 20 Nov 2012 19:04:30 +0000 (20:04 +0100)
Open a modal dialog, try to open the message tray -> no effect, the message
tray is blocked by the dialog.
Close the dialog, try to open the message tray by pointer -> still
no effect, because the old timeout id was not cleared the first time,
so the dwell callback thinks the tray is about to open.

https://bugzilla.gnome.org/show_bug.cgi?id=688750

js/ui/messageTray.js

index 483b71dc4b1426d83677a7f1c74a79f821846123..31283e690e2c004c6a49aed86fd3187c857aff8c 100644 (file)
@@ -1606,6 +1606,8 @@ const MessageTray = new Lang.Class({
     },
 
     _trayDwellTimeout: function() {
+        this._trayDwellTimeoutId = 0;
+
         if (Main.modalCount > 0)
             return false;
 
@@ -1616,8 +1618,6 @@ const MessageTray = new Lang.Class({
         if (currentUserTime != this._trayDwellUserTime)
             return false;
 
-        this._trayDwellTimeoutId = 0;
-
         this._traySummoned = true;
         this._updateState();